import request from '@/utils/request'

//查询游戏分类列表
export const queryPageApi = (name, pageNum, pageSize) => request.get(`/admin/gameCategory/page?name=${name}&pageNum=${pageNum}&pageSize=${pageSize}`)
//添加游戏分类
export const addGameCategoryApi = (data) => request.post('/admin/gameCategory', data)
//根据ID查询游戏分类信息
export const queryInfoApi = (id) => request.get(`/admin/gameCategory/${id}`)
//修改游戏分类信息
export const updateGameCategoryApi = (data) => request.put('/admin/gameCategory', data)
//删除游戏分类
export const deleteGameCategoryApi = (ids) => request.delete(`/admin/gameCategory?ids=${ids}`)
//查询所有游戏分类
export const queryAllApi = () => request.get(`/admin/gameCategory/all`)